<div class="form offset5">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>

<table>
	<tr>
		<td colspan='3' align="center"><h3 >注册</h3></td>
	</tr>
	<tr>
		<td><?php echo $form->labelEx($model,'username'); ?></td>
		<td><?php echo $form->textField($model,'username'); ?></td>
		<td><?php echo $form->error($model,'username'); ?></td>
	</tr>
	<tr>
		<td><?php echo $form->labelEx($model,'password'); ?></td>
		<td><?php echo $form->passwordField($model,'password'); ?></td>
		<td><?php echo $form->error($model,'password'); ?></td>
	</tr>

	<tr>
		<td colspan='3' align="center">
			<?php echo CHtml::submitButton('注册',array('class'=>'btn')); ?>
			<a class="btn" href="<?php echo $this->createUrl('/site/');?>">返回</a>
		</td>
	</tr>
</table>
<?php $this->endWidget(); ?>
</div><!-- form -->